home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / air / update / states / UpdateState.as < prev   
Text File  |  2009-12-16  |  1KB  |  44 lines

  1. package air.update.states
  2. {
  3.    public class UpdateState
  4.    {
  5.       
  6.       public static const CHECKING:int = 4;
  7.       
  8.       private static const STATES:Array = ["UNINITIALIZED","INITIALIZING","READY","BEFORE_CHECKING","CHECKING","AVAILABLE","DOWNLOADING","DOWNLOADED","INSTALLING","PENDING_INSTALLING"];
  9.       
  10.       public static const READY:int = 2;
  11.       
  12.       public static const DOWNLOADED:int = 7;
  13.       
  14.       public static const INITIALIZING:int = 1;
  15.       
  16.       public static const PENDING_INSTALLING:int = 9;
  17.       
  18.       public static const AVAILABLE:int = 5;
  19.       
  20.       public static const BEFORE_CHECKING:int = 3;
  21.       
  22.       public static const UNINITIALIZED:int = 0;
  23.       
  24.       public static const DOWNLOADING:int = 6;
  25.       
  26.       public static const INSTALLING:int = 8;
  27.        
  28.       
  29.       public function UpdateState()
  30.       {
  31.          super();
  32.       }
  33.       
  34.       public static function getStateName(param1:int) : String
  35.       {
  36.          if(param1 >= 0 && param1 < STATES.length)
  37.          {
  38.             return STATES[param1];
  39.          }
  40.          return "INVALID_STATE: " + param1;
  41.       }
  42.    }
  43. }
  44.